/*
* pps_bom
*/
package com.pitop.assembly.api;

import com.pitop.assembly.entity.AssemblyMaterial;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * 构成组件的物料 api请求熔断器 熔断实现
 *
 * @author berton
 */
@Component
public class AssemblyMaterialFeignApiImpl implements AssemblyMaterialFeignApi {
    /**
     * 查询AssemblyMaterial一个详情信息
     *
     * @param id
     * @param assemblyCode 组件编码
     * @param materialCode 物料编码
     * @return AssemblyMaterial
     */
    @Override
    public AssemblyMaterial load(@RequestParam("id") Long id, @RequestParam("assemblyCode") String assemblyCode, @RequestParam("materialCode") String materialCode) {
        return new AssemblyMaterial();
    }

    /**
     * 查询AssemblyMaterial一个详情信息,(将查询关联数据)
     *
     * @param id
     * @param assemblyCode 组件编码
     * @param materialCode 物料编码
     * @return AssemblyMaterial
     */
    @Override
    public AssemblyMaterial get(@RequestParam("id") Long id, @RequestParam("assemblyCode") String assemblyCode, @RequestParam("materialCode") String materialCode) {
        return new AssemblyMaterial();
    }


    /**
     * 根据条件id查询AssemblyMaterial一个详情信息
     *
     * @param id
     * @return AssemblyMaterial
     */
    @Override
    public AssemblyMaterial loadById(@RequestParam("id") Long id) {
        return new AssemblyMaterial();
    }

    /**
     * 根据条件assemblyCode查询AssemblyMaterial一个详情信息
     *
     * @param assemblyCode 组件编码
     * @return AssemblyMaterial
     */
    @Override
    public AssemblyMaterial loadByAssemblyCode(@RequestParam("assemblyCode") String assemblyCode) {
        return new AssemblyMaterial();
    }

    /**
     * 根据条件materialCode查询AssemblyMaterial一个详情信息
     *
     * @param materialCode 物料编码
     * @return AssemblyMaterial
     */
    @Override
    public AssemblyMaterial loadByMaterialCode(@RequestParam("materialCode") String materialCode) {
        return new AssemblyMaterial();
    }

    /**
     * 根据条件id查询AssemblyMaterial一个详情信息,(将查询关联数据)
     *
     * @param id
     * @return AssemblyMaterial
     */
    @Override
    public AssemblyMaterial getById(@RequestParam("id") Long id) {
        return new AssemblyMaterial();
    }

    /**
     * 根据条件assemblyCode查询AssemblyMaterial一个详情信息,(将查询关联数据)
     *
     * @param assemblyCode 组件编码
     * @return AssemblyMaterial
     */
    @Override
    public AssemblyMaterial getByAssemblyCode(@RequestParam("assemblyCode") String assemblyCode) {
        return new AssemblyMaterial();
    }

    /**
     * 根据条件materialCode查询AssemblyMaterial一个详情信息,(将查询关联数据)
     *
     * @param materialCode 物料编码
     * @return AssemblyMaterial
     */
    @Override
    public AssemblyMaterial getByMaterialCode(@RequestParam("materialCode") String materialCode) {
        return new AssemblyMaterial();
    }

    /**
     * 查询AssemblyMaterial信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<AssemblyMaterial> list(@RequestBody AssemblyMaterial assemblyMaterial, int curPage, int pageSize) {
        return new ArrayList();
    }

    /**
     * 查询AssemblyMaterial信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<AssemblyMaterial> listByPk(Long id, String assemblyCode, String materialCode, int curPage, int pageSize) {
        return new ArrayList();
    }

    @Override
    public Integer count(@RequestParam("id") Long id, @RequestParam("assemblyCode") String assemblyCode, @RequestParam("materialCode") String materialCode) {
        return 0;
    }

    @Override
    public Integer count(@RequestBody AssemblyMaterial assemblyMaterial) {
        return 0;
    }

    /**
     * 创建AssemblyMaterial
     *
     * @return AssemblyMaterial
     */
    @Override
    public AssemblyMaterial build(@RequestBody AssemblyMaterial assemblyMaterial) {
        return new AssemblyMaterial();
    }

    /**
     * 修改AssemblyMaterial
     *
     * @return AssemblyMaterial
     */
    @Override
    public AssemblyMaterial modify(@RequestBody AssemblyMaterial assemblyMaterial) {
        return new AssemblyMaterial();
    }

    /**
     * 删除AssemblyMaterial
     */
    @Override
    public void delete(@RequestParam("id") Long id, @RequestParam("assemblyCode") String assemblyCode, @RequestParam("materialCode") String materialCode) {
        return;
    }
}
